﻿<Window x:Class="STOCK.FormulaEditUI"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="FormulaEditUI" Height="500" Width="600" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
    <Grid Name="gridFormula">
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="26,30,0,0" Name="textBlock1" Text="名称" VerticalAlignment="Top" />
        <TextBox Text="{Binding Name}" Height="23" HorizontalAlignment="Right" Margin="0,30,359,0" Name="txtName" VerticalAlignment="Top" Width="120" TabIndex="1" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="26,67,0,0" Name="textBlock2" Text="分类" VerticalAlignment="Top" />
        <ComboBox SelectedValue="{Binding CatId}" Height="23" DisplayMemberPath="Name" SelectedValuePath="Id" HorizontalAlignment="Left" Margin="99,67,0,0" Name="cmbCat" VerticalAlignment="Top" Width="120" TabIndex="2" />
        <TextBox Text="{Binding Formula}" Height="267" HorizontalAlignment="Left" Margin="26,168,0,0" Name="txtFormula" VerticalAlignment="Top" Width="536" TabIndex="3" AcceptsTab="True" AcceptsReturn="True" FontSize="14" TextWrapping="Wrap" />
        <TextBox Text="{Binding Discription}" Height="104" HorizontalAlignment="Left" Margin="249,27,0,0" Name="txtDiscription" VerticalAlignment="Top" Width="313" TabIndex="4" FontSize="14" TextWrapping="Wrap" AcceptsReturn="True" AcceptsTab="True" />
        <Button Content="保存" Height="23" HorizontalAlignment="Left" Margin="30,108,0,0" Name="btnSave" VerticalAlignment="Top" Width="75" Click="btnSave_Click" TabIndex="5" />
        <Button Content="取消" Height="23" HorizontalAlignment="Left" Margin="144,108,0,0" Name="btnCancel" VerticalAlignment="Top" Width="75" Click="btnCancel_Click" TabIndex="6" />
        <Button Content="复制公式" Height="23" HorizontalAlignment="Left" Margin="144,139,0,0" Name="btnCopyFormula" VerticalAlignment="Top" Width="75" Click="btnCopyFormula_Click" />
        <Button Content="复制名称" Height="23" HorizontalAlignment="Left" Margin="30,139,0,0" Name="btnCopyName" VerticalAlignment="Top" Width="75" Click="btnCopyName_Click" />
        <Button Content="复制描述" Height="23" HorizontalAlignment="Left" Margin="249,139,0,0" Name="btnCopyDiscription" VerticalAlignment="Top" Width="75" Click="btnCopyDiscription_Click" />
    </Grid>
</Window>
